package com.graphqljava.demo.gql;

import com.graphqljava.demo.gql.entity.AchieveInfo;
import com.graphqljava.demo.gql.service.AchieveInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Autowired
    AchieveInfoService service;

    @Override
    public void run(String... args) throws Exception {

        AchieveInfo data = service.findAchieveInfoById("9d8b53af6bb7434face78afb4e2540d0").orElse(null);

    }
}
